﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace H5.FIO {

    /// <summary>
    /// 表示网站配置管理器。
    /// </summary>
    public static class ConfigManager {

        /// <summary>
        /// 获取当前网站的连接字符串。
        /// </summary>
        public static string connectionString {
            get {
                return System.Configuration.ConfigurationManager.ConnectionStrings["Default"].ConnectionString;
            }
        }

        #region 邮箱相关

        public static string smtpServer {
            get {
                return System.Configuration.ConfigurationManager.AppSettings["smtpServer"];
            }
        }

        public static string smtpUser {
            get {
                return System.Configuration.ConfigurationManager.AppSettings["smtpUser"];
            }
        }

        public static string smtpPassword {
            get {
                return System.Configuration.ConfigurationManager.AppSettings["smtpPassword"];
            }
        }

        public static string smtpUserName {
            get {
                return System.Configuration.ConfigurationManager.AppSettings["smtpUserName"];
            }
        }

        #endregion
        
    }

}
